package com.lagou;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import java.io.IOException;

/**
 * @ClassName ProviderApplication
 * @Description
 * @Author playboy
 * @Date 2021/6/19 10:21 上午
 * @Version 1.0
 **/
public class ProviderApplication {
	private static Logger log = LoggerFactory.getLogger(ProviderApplication.class);

	public static void main(String[] args) throws IOException {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ProviderConfig.class);
		context.start();
		System.in.read();
	}

	@Configuration
	@EnableDubbo(scanBasePackages = "com.lagou.service.impl")
	@PropertySource("classpath:/dubbo-provider.properties")
	static class ProviderConfig {

	}

}
